//
//  CXBCarInfoViewModel.h
//  车信帮3.0
//
//  Created by liGordon on 16/7/18.
//  Copyright © 2016年 lifuli. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CXBCarInfoViewModel : NSObject

+(instancetype)shareInfoModel;

/**
 *  查询车辆品牌信息
 */

-(void)searchCarBrandInfoWithPID:(NSString *)pId andHierarchy:(NSString *)hierarchy Success:(void (^)(NSDictionary *result))success andfailure:(void (^)())failure;



/**
 *  添加用户车辆信息
 */
-(void)addUserCarInfoWithBuyTime:(NSString *)buyTime andCarModelId:(NSString *)carModelId andIsDefault:(NSString *)isDefault andMakeId:(NSString *)makeId andMakeName:(NSString *)makeName andMemberId:(NSString *)memberId andModelName:(NSString *)modelName andModelSeries:(NSString *)modelSeries andPlateNumber:(NSString *)PlateNumber andRemark:(NSString *)remark andTypeName:(NSString *)typeName andTypeSeries:(NSString *)typeSeries andVehicleClass:(NSString *)vehicleClass andCarColor:(NSString *)carColor andVehicleFrameNum:(NSString *)vehicleFrameNum andEngineNum:(NSString *)engineNum andTotalMileage :(NSString *)totalMileage andMakeLogo:(NSString *)makeLogo andDisplacement:(NSString *)displacement andTypeId:(NSString *)TypeId Success:(void (^)(NSDictionary *result))success
;



/**
 *  修改车辆信息
 */
-(void)changeUserCarInfoWithID:(NSString *)iD andBuyTime:(NSString *)buyTime andCarModelId:(NSString *)carModelId andIsDefault:(NSString *)isDefault andMakeId:(NSString *)makeId andMakeName:(NSString *)makeName andMemberId:(NSString *)memberId andModelName:(NSString *)modelName andModelSeries:(NSString *)modelSeries andPlateNumber:(NSString *)PlateNumber andRemark:(NSString *)remark andTypeName:(NSString *)typeName andTypeSeries:(NSString *)typeSeries andVehicleClass:(NSString *)vehicleClass andCarColor:(NSString *)carColor andVehicleFrameNum:(NSString *)vehicleFrameNum andEngineNum:(NSString *)engineNum andTotalMileage :(NSString *)totalMileage andMakeLogo:(NSString *)makeLogo andDisplacement:(NSString *)displacement  andTypeId:(NSString *)TypeId Success:(void (^)(NSDictionary *result))success;



/**
 *  删除车辆信息 (101)
 */
-(void)deleteCarInfoWithCarInfoId:(NSString *)carInfoID  Success:(void (^)(NSDictionary *result))success;


/**
 *  查询单条或多条车辆信息
 */
-(void)searchSingleAndMultiCarInfoWithCarInfoId:(NSString *)carInfoID andFlag:(NSString *)flag Success:(void (^)(NSDictionary *result))success andFailer:(void (^)())failer;

/**
 *  用户设置默认车辆 (参数不正确)
 */
-(void)setDefualtCarInfoWithCarInfoId:(NSString *)carInfoID  Success:(void (^)(NSDictionary *result))success;

/**
 *  根据车型id查询车型列表
 */
-(void)searchCarTypeListWithModelId:(NSString *)modelId andtypeSeries:(NSString *)typeSeries  Success:(void (^)(NSDictionary *result))success;


/**
 *  查询热门品牌列表
 */

-(void)searchHotCarBrandListSuccess:(void (^)(NSDictionary *result))success;


@end
